package ink.tiptop.common.worker.install;

import lombok.Getter;
import lombok.Setter;

import java.util.ArrayList;
import java.util.List;

/**
 * @author ink.tiptop.zjf
 * @Title: Ticket
 * @Package ink.tiptop.common.worker
 * @Description:
 * @date 2020-07-24 16:56
 */
@Getter
@Setter
public class InstallResult {

    private InstallStatus status = InstallStatus.FAILED;

    public InstallResult(InstallStatus status) {
        this.status = status;
    }

    /**
     * 这个jar包 要上传到服务器上的服务里面
     */
    private List<String> successList = new ArrayList<>();

    private List<String> failedList = new ArrayList<>();;

    public InstallResult() {

    }

    public void addSuccess(String jar) {
        this.successList.add(jar);
    }

    public void addFailed(String jar) {
        this.failedList.add(jar);
    }

}
